<?php

namespace app\constant\zs;

/**
 * 外卖活动通用常量类
 * Class ZsTwActivityCommon
 * @package app\constant\zs
 */
class ZsTwActivityCommon
{
    // type 活动类型，1：首单减，2：免配送费，3：满减，4：折扣，5：减配送费，6：优惠配送费
    const TYPE_FIRST_SUB = 1;
    const TYPE_FREE_FEE = 2;
    const TYPE_FULL_SUB = 3;
    const TYPE_DISCOUNT = 4;
    const TYPE_SUB_FEE = 5;
    const TYPE_DISCOUNT_FEE = 6;

    /**
     * @return array
     */
    public static function typeRels(): array
    {
        return [
            self::TYPE_FIRST_SUB => '首单立减',
            self::TYPE_FREE_FEE => '免配送费',
            self::TYPE_FULL_SUB => '满减',
            self::TYPE_DISCOUNT => '折扣',
            self::TYPE_SUB_FEE => '减配送费',
            self::TYPE_DISCOUNT_FEE => '优惠配送费',
        ];
    }

    /**
     * @return array
     */
    public static function typeSignRels(): array
    {
        return [
            self::TYPE_FIRST_SUB => 'type_first_sub',
            self::TYPE_FREE_FEE => 'type_free_fee',
            self::TYPE_FULL_SUB => 'type_full_sub',
            self::TYPE_DISCOUNT => 'type_discount',
            self::TYPE_SUB_FEE => 'type_sub_fee',
            self::TYPE_DISCOUNT_FEE => 'type_discount_fee',
        ];
    }

    /**
     * @return array
     */
    public static function statusRels(): array
    {
        return [
            0 => '禁用',
            1 => '启用',
        ];
    }

    /**
     * @return array
     */
    public static function statusClassRels(): array
    {
        return [
            0 => 'color-red',
            1 => 'color-green',
        ];
    }

    /**
     * @return array
     */
    public static function auditStatusRels(): array
    {
        return [
            0 => '未审核',
            1 => '审核通过',
            2 => '审核不通过',
        ];
    }

    /**
     * @return array
     */
    public static function auditStatusClassRels(): array
    {
        return [
            0 => 'color-desc',
            1 => 'color-green',
            2 => 'color-red',
        ];
    }
}
